package com.tcm.store.mapper;


import com.tcm.store.domain.entity.StoreService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StoreServiceMapper {

    StoreService findServiceById(Long id);

    StoreService queryStoreService(@Param("storeId") Long storeId,
                                       @Param("category") String category,
                                       @Param("dosageId") Long dosageId);

    int checkServiceCategory(@Param("storeId") Long storeId, @Param("category") String category, @Param("id") Long id);

    int checkService(@Param("storeId") Long storeId, @Param("category") String category, @Param("dosageId") Long dosageId);

    int deleteById(Long id);

    int deleteLogicById(Long id);

    int insert(StoreService storeService);

    int update(StoreService storeService);
}